/*
 * led.h
 *
 *  Created on: 2013-1-8
 *      Author: Al_Ways
 */

#include "stm32f10X_type.h"

#ifndef LED_H_
#define LED_H_

#define PORT_LED_AUX			GPIOB
#define PORT_LED_MANAGE			GPIOB
#define PORT_LED_PROGRAM		GPIOB
#define PORT_LED_PLAY			GPIOB
#define PORT_LED_POWER			GPIOC
#define PORT_LED_TX				GPIOC
#define PORT_LED_RX				GPIOC

#define PIN_LED_AUX				GPIO_Pin_12
#define PIN_LED_MANAGE			GPIO_Pin_13
#define PIN_LED_PROGRAM			GPIO_Pin_14
#define PIN_LED_PLAY			GPIO_Pin_15
#define PIN_LED_POWER			GPIO_Pin_13
#define PIN_LED_TX				GPIO_Pin_14
#define PIN_LED_RX				GPIO_Pin_15

#define ON			1
#define OFF			0

void TurnLEDManage(bool flag);
void TurnLEDProgram(bool flag);
void TurnLEDPlay(bool flag);
void TurnLEDTx(bool flag);
void TurnLEDRx(bool flag);
void TurnLEDAux(bool flag);
void TurnLEDPower(bool flag);

#endif /* LED_H_ */
